package com.springboot.demo.config.demo1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Create By Alvin on 2018/9/7
 **/
@Component
public class User implements Serializable {
    private A a1;
    private B b1;
    private C c1;

    /*@Autowired
    public  User(A a1,B b1,C c1)
    {
    }*/
    @Autowired
    public void setA1(A a1) {
        this.a1 = a1;
    }

    @Autowired
    public void setB1(B b1) {
        this.b1 = b1;
    }
    @Autowired
    public void setC1(C c1) {
        this.c1 = c1;
    }

    @Override
    public String toString() {
        return "User{" +
                "a1=" + a1 +
                ", b1=" + b1 +
                ", c1=" + c1 +
                '}';
    }
}
